<%	
	ResultSet rs;
	String SType ="";
	if (cat.compareTo("1")==0) SType = "A";
	if (cat.compareTo("2")==0) SType = "P";
	if (cat.compareTo("3")==0) SType = "SD";
	if (cat.compareTo("4")==0) SType = "S";
	if (cat.compareTo("5")==0) SType = "R";										  
    rs = task.getQualityRefList(SType);
	int id = 0;
    while (rs.next())
	{
		id = rs.getInt("sample_dts_id");
%>		
		<option value="<%=id%>"><%=rs.getString("ref_number")%></option>
<%
	}
	task.getResponse().setSelected("sample_details",focused_id);
	rs.close();
%>	
